﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using University.Workshop.Presenters;
namespace University.Workshop.Tests
{
    public class ProviderMockView : IProvider
    {

        #region IMembers Provider
        public string Search
        {
            get;
            set;
        }

        public bool Active
        {
            get;
            set;
        }
     
        public string ModifyName
        {
            get;
            set;
        }

        public string ModifyEmail
        {
            get;
            set;
        }

        public string ModifyWeb
        {
            get;
            set;
        }

        public string ModifyContact
        {
            get;
            set;
        }

        public string ModifyCellular
        {
            get;
            set;
        }

        public string ModifyTelephone
        {
            get;
            set;
        }

        public string ModifyAddress
        {
            get;
            set;
        }

        public string ModifyNit
        {
            get;
            set;
       }
#endregion
        #region Search
        public void SearchTrue()
        {
            Search = "1";
            Active = true;
        }
        public void SearchNull()
        {
            Search = "";
            Active = true;
        }
        public void SearchInvalidFormat()
        {
            Search = "_";
            Active = true;
        }
        public void SearchInvalidLenght()
        {
            Search = "89271308956036254";
            Active = true;
        }
        public void SearchWrong()
        {
            Search = "1000000";
            Active = true;
        }
        public void GetProviderEnable()
        {
            Search = "1";
            Active = false;
        }
        public void GetProviderDisable()
        {
            Search = "1";
            Active = true;
        }

        #endregion

        #region Show
        public void Show()
        {
            ModifyNit = "1214568";

        }
        #endregion
        #region Update
        public void UpdateTrue()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateInvalid()
        {
            ModifyName = "";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateInvalidPhone()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "";
            ModifyTelephone = "";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateNameInvalid()
        {
            ModifyName = "1|°#$%&/()=?¡¿'";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateAdressInvalid()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America INTIasdjfhaskdgfasjghkas";
            ModifyNit = "1214568";

        }
        public void UpdateTelephoneInvalid()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "402003245664";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateCellularInvalid()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "402003245664";
            ModifyTelephone = "47892376";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }

        public void UpdateInvalidContact()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "ytu";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateInvalidEmail()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "lab";
            ModifyWeb = "www.inti.com.bo";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }
        public void UpdateInvalidWeb()
        {
            ModifyName = "Laboratorios INTI";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyWeb = "hsadha";
            ModifyContact = "Roberto";
            ModifyCellular = "72270122";
            ModifyTelephone = "4020064";
            ModifyAddress = "Av America";
            ModifyNit = "1214568";

        }

        #endregion
        #region SetProvider
        public void SetProvider() {
            ModifyNit = "64082354";

        }
        public void UpdateProviderTrue() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress="Av Aroma";
            ModifyCellular="7225415";
            ModifyContact="Mauricio";
            ModifyEmail="laboratorios@hotmail.com";
            ModifyNit="64082354";
            ModifyTelephone="4020064";
            ModifyWeb="www.cofar.com.bo";
            
            
        }
        public void UpdateProviderNameNull() {
            ModifyName = "";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderWhitoutCell() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderNameInvalid() {
            ModifyName = "!#$%&=?¡¿'°";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderAddressInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Arcdbgdsfghsdfhhfghjdfjgdsfgqweasdfoma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderTelephoneInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4675020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderCellularInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "72256778587415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderContactInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Maukkkkkkkkkkkkkkkkkkkkkkkrijsfiasdgiohipowuheoicio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderEmailInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboradfgsdfghshtorios";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "www.cofar.com.bo";
        }
        public void UpdateProviderWebInvalid() {
            ModifyName = "Laboratorios COFAR";
            ModifyAddress = "Av Aroma";
            ModifyCellular = "7225415";
            ModifyContact = "Mauricio";
            ModifyEmail = "laboratorios@hotmail.com";
            ModifyNit = "64082354";
            ModifyTelephone = "4020064";
            ModifyWeb = "ofjbgagladhgaklsdjghaar";
        }
        #endregion

    }
}
